<?php
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
class H_String_Html{
    const CHARSET = 'UTF-8';

    public static function encode($value){
        $value = htmlentities($value, ENT_QUOTES, self::CHARSET);
        return $value;
    }
    public static function decode($value){
        $value = htmlspecialchars_decode($value, ENT_QUOTES);
        return $value;
    }
}
?>
